package com.xmut.mall.order.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xmut.mall.order.utils.PageUtils;
import com.xmut.mall.order.utils.Query;

import com.xmut.mall.order.dao.ReceiptDao;
import com.xmut.mall.order.entity.ReceiptEntity;
import com.xmut.mall.order.service.ReceiptService;


@Service("receiptService")
public class ReceiptServiceImpl extends ServiceImpl<ReceiptDao, ReceiptEntity> implements ReceiptService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ReceiptEntity> page = this.page(
                new Query<ReceiptEntity>().getPage(params),
                new QueryWrapper<ReceiptEntity>()
        );

        return new PageUtils(page);
    }

}